Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate all iOS and Android precheck actions #577

Merged
merged 4 commits into from
Jul 31, 2024

Conversation

spencertransier
Copy link
Contributor

@spencertransier spencertransier commented Jul 27, 2024

What does it do?

Fixes #576

This PR deprecates the following precheck actions:

  • android_betabuild_prechecks
  • android_build_prechecks
  • android_codefreeze_prechecks
  • android_completecodefreeze_prechecks
  • android_finalize_prechecks
  • android_hotfix_prechecks
  • ios_betabuild_prechecks
  • ios_build_prechecks
  • ios_codefreeze_prechecks
  • ios_completecodefreeze_prechecks
  • ios_finalize_prechecks
  • ios_hotfix_prechecks

When the versioning changes were added in #512, it was decided that we would stop using these -prechecks actions and instead use any necessary steps from those actions directly in Fastfiles. The idea is that the precheck actions were opaque and made it harder to figure out where errors were occuring when running release management lanes. There are some other versioning and preflight actions that we'll want to deprecate as well (at least the versioning ones for sure), but I decided to limit this PR to only the precheck actions.

Example: See these WooCommerce iOS and Android PRs that switched from using the precheck actions to directly adding the steps in the Woo lanes:

From what I can tell, the Simplenote Android, iOS, and Mac apps are the only apps still using these prechecks (they weren't updated with the versioning changes last year), so it won't be a lot of work for us once these actions are eventually removed.

Checklist before requesting a review

  • Run bundle exec rubocop to test for code style violations and recommendations
  • Add Unit Tests (aka specs/*_spec.rb) if applicable
  • Run bundle exec rspec to run the whole test suite and ensure all your tests pass
  • Make sure you added an entry in the CHANGELOG.md file to describe your changes under the appropriate existing ### subsection of the existing ## Trunk section.
  • If applicable, add an entry in the MIGRATION.md file to describe how the changes will affect the migration from the previous major version and what the clients will need to change and consider.

@spencertransier spencertransier marked this pull request as ready for review July 27, 2024 01:00
@spencertransier spencertransier requested a review from a team July 27, 2024 01:20
end

def self.deprecated_notes
'This action is deprecated and will be removed in an upcoming Release Toolkit version. Any necessary steps that are included in this precheck action should be added directly in a repo\'s Fastfile. See https://github.com/wordpress-mobile/release-toolkit/issues/576'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick.

Suggested change
'This action is deprecated and will be removed in an upcoming Release Toolkit version. Any necessary steps that are included in this precheck action should be added directly in a repo\'s Fastfile. See https://github.com/wordpress-mobile/release-toolkit/issues/576'
'This action is deprecated and will be removed in the next major version Release Toolkit update. Any necessary steps that are included in this precheck action should be added directly in a repo\'s Fastfile. See https://github.com/wordpress-mobile/release-toolkit/issues/576'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed in a27ec90

Copy link
Contributor

@mokagio mokagio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this @spencertransier .

Great timing 😄

def self.description
'Runs some prechecks before preparing for a new test build'
'(DEPRECATED) Runs some prechecks before preparing for a new test build'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Appreciate the effort here, but FWIW I wouldn't consider it necessary. Fastlane already prints the deprecation alert when the lane is called and in the docs:

image

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Removed in 8d87d87

@iangmaia iangmaia added this to the 3️⃣ Next release (any) milestone Jul 30, 2024
@spencertransier spencertransier merged commit 4fb0229 into trunk Jul 31, 2024
5 checks passed
@spencertransier spencertransier deleted the deprecate/precheck-actions branch July 31, 2024 06:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate ios_codefreeze_prechecks and other pre-check lanes
3 participants